﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ExcelConfig.Config
{
    public class ExcelRead2
    {
        public static IEnumerable<ExcelRow2> Query(string path, string sheet)
        {
            foreach (var row in ExcelSys.Query(path, true, sheet))
            {
                var r = new ExcelRow2(row);
                if (!r.OK) continue;
                yield return r;
            }
        }
    }
}
